package com.xiegang.apipassenger.remote;

import com.xiegang.internalcommon.dto.ResponseResult;
import com.xiegang.internalcommon.request.OrderRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author xieGang
 * @description
 * @date 2023/4/7 15:35
 **/
@FeignClient("order-service")
public interface ServiceOrderClient {

    @RequestMapping(method = RequestMethod.POST,value = "/order/add")
    public ResponseResult add(@RequestBody OrderRequest orderRequest);

    @RequestMapping(method = RequestMethod.POST,value = "/test/getName")
    public ResponseResult getName();

    @GetMapping("/test111/{orderId}")
    public String testDIs(@PathVariable("orderId")long orderId);
}
